<template>
  <div class="dgrb-icon" @click="backHome">
    <img src="../assets/images/logo.png" alt="logo" />
    <div class="txt">{{ siteConfig.logoText }}</div>
  </div>
</template>

<script setup lang="ts">
import { siteConfig } from '@/utils'
const router = useRouter()
function backHome() {
  router.replace({ path: '/' })
}
</script>

<style lang="less" scoped>
.dgrb-icon {
  display: flex;
  align-items: center;
  cursor: pointer;
  min-width: 150px;
  height: 100%;
  padding: 0 10px;
  &:hover {
    background-color: rgba(245, 245, 245, 1);
  }
  > img {
    height: 32px;
    aspect-ratio: 1;
    margin-right: 10px;
  }
  .txt {
    font-size: 16px;
    font-weight: bold;
  }
}
</style>
